doctype html
html
  head
    title= title
    meta(name="keywords" content="code-push-server,code-push,react-native,cordova")
    meta(name="description" content="CodePush service is hotupdate services which adapter react-native-code-push and cordova-plugin-code-push")
    link(rel='stylesheet', href='/js/bootstrap-3.3.7/css/bootstrap.min.css')
    link(rel='stylesheet', href='/stylesheets/common.css')
    block css
  body
    block content

  script(src='/js/jquery-3.1.1.min.js')
  script(src='/js/bootstrap-3.3.7/js/bootstrap.min.js')
  script().
    function getAccessToken() {
        return localStorage.getItem('auth');
    }
    function ensureLogin() {
        if (!getAccessToken()) {
            window.location.href = '/auth/login';
        }
    }
    function logout() {
        localStorage.removeItem('auth');
        location.href = '/auth/login';
    }
    function parseQuery() {
      query = location.search.substring(1);
      var vars = query.split('&');
      var rs = {};
      for (var i = 0; i < vars.length; i++) {
        var pair = vars[i].split('=');
        rs[decodeURIComponent(pair[0])] = decodeURIComponent(pair[1]);
      }
      return rs;
    }
  block js
